package com.hzmall.service;

import com.hzmall.common.ServerResponse;
import com.hzmall.pojo.Product;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface IProductService {
    ServerResponse list(Integer categoryId, String keywords, Integer pageNum, Integer pageSize, String orderBy);
    ServerResponse detail(Integer productId);
    ServerResponse backendList(Integer pageNum,Integer pageSize);
    ServerResponse backendSearch(String productName,Integer productId,Integer pageNum,Integer pageSize);
    ServerResponse upload(MultipartFile upload_file, HttpServletRequest request);
    ServerResponse backendDetail(Integer productId);
    ServerResponse setSaleStatus(Integer productId,Integer status);
    ServerResponse save(Product product);
    Map backendRichTextImgUpload(MultipartFile upload_file, HttpServletRequest request);
}
